package com.yc.damai.damaiother.controller;


import com.yc.damai.damaiother.mapper.DmCategoryMapper;
import com.yc.damai.entity.DmCategory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 大麦商城-商品分类表-43 前端控制器
 * </p>
 *
 * @author lpt
 * @since 2024-09-08
 */
@RestController
@RequestMapping("/dmCategory")
public class DmCategoryController {

    @Autowired
    DmCategoryMapper dmCategoryMapper;

    @RequestMapping("queryAll")
    public List<DmCategory> queryAll(){
        return dmCategoryMapper.queryAll();
    }
}

